<%@page import="net.zabuchy.user.entity.User"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>

<html>
<s:head />
<sx:head />
<sj:head locale="pl" jqueryui="true" jquerytheme="mytheme" customBasepath="/SpringSecurity/template/themes/"/>

<link type="text/css"
	href="/SpringSecurity/template/themes/mytheme/style.css"
	rel="stylesheet" />

<script type="text/javascript"
	src="/SpringSecurity/template/themes/mytheme/css/js/jquery-1.6.2.min.js"></script>
<script type="text/javascript"
	src="/SpringSecurity/template/themes/mytheme/css/js/jquery-ui-1.8.16.custom.min.js"></script>
<link type="text/css"
	href="/SpringSecurity/template/themes/mytheme/jquery-ui.css"
	rel="stylesheet" />
<script type="text/javascript"
	src="/SpringSecurity/template/themes/mytheme/css/js/menu_script.js"></script>

<script type="text/javascript">
	$(function() {

		//Button
		$("button").button();

		// Accordion
		$("#accordion").accordion({
			header : "h3",
			openOnMouseover : "true"
		});

		// Tabs
		$('#tabs').tabs();

		// Dialog			
		$('#dialog').dialog({
			autoOpen : false,
			width : 600,
			buttons : {
				"Ok" : function() {
					$(this).dialog("close");
				},
				"Cancel" : function() {
					$(this).dialog("close");
				}
			}
		});

		// Dialog Link
		$('#dialog_link').click(function() {
			$('#dialog').dialog('open');
			return false;
		});

		// Datepicker
		$('#datepicker').datepicker({
			inline : true
		});

		// Slider
		$('#slider').slider({
			range : true,
			values : [ 17, 67 ]
		});

		// Progressbar
		

		//hover states on the static widgets
		$('#dialog_link, ul#icons li').hover(function() {
			$(this).addClass('ui-state-hover');
		}, function() {
			$(this).removeClass('ui-state-hover');
		});

	});
</script>

<title>Agile Task Management</title>

</head>
<body>
	<div id="header">
	</div>
	<s:url id="logout" value="j_spring_security_logout"></s:url>
	<s:url id="editProfile" value="editMyProfile.action">
		<s:param name="editOwnProfile" value="true"/>
	</s:url>
 
	<div id="logInfo">
		Login as: <sec:authentication property="principal.username" /> &nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<s:a href="%{editProfile}">Edit
			my profile</s:a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<s:a href="%{logout}" >Logout</s:a>
	</div>
